import pymysql

conn=pymysql.connect(host='localhost',port=3306,user='root',password='root',database='book')
cursor=conn.cursor()
cursor.execute("select * from book_info")
for row in cursor:
    print(row)
